import request from '@/utils/request';

// 查询apollo替换项配置列表
export function listApolloReplaceItem(query) {
  return request({
    url: '/tool/apollo/apolloReplaceItem/list',
    method: 'get',
    params: query,
  });
}

// 查询apollo替换项配置详细
export function getApolloReplaceItem(apolloReplaceItemId) {
  return request({
    url: '/tool/apollo/apolloReplaceItem/' + apolloReplaceItemId,
    method: 'get',
  });
}

// 新增apollo替换项配置
export function addApolloReplaceItem(data) {
  return request({
    url: '/tool/apollo/apolloReplaceItem',
    method: 'post',
    data: data,
  });
}

// 修改apollo替换项配置
export function updateApolloReplaceItem(data) {
  return request({
    url: '/tool/apollo/apolloReplaceItem',
    method: 'put',
    data: data,
  });
}

// 删除apollo替换项配置
export function delApolloReplaceItem(apolloReplaceItemId) {
  return request({
    url: '/tool/apollo/apolloReplaceItem/' + apolloReplaceItemId,
    method: 'delete',
  });
}
